//
//  NewsHtmlViewController.m
//  动漫之家
//
//  Created by 王少泽 on 16/12/9.
//  Copyright © 2016年 王少泽. All rights reserved.
//

#import "NewsHtmlViewController.h"
#import <WebKit/WebKit.h>
@interface NewsHtmlViewController ()

@end

@implementation NewsHtmlViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    NSLog(@"新闻展示页面:%@",self.newsURL);

    WKWebView* newWeb = [[WKWebView alloc]initWithFrame:self.view.frame];
    
    [newWeb loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.newsURL]]];
    //[newWeb loadHTMLString:self.newsURL baseURL:self.nUrl];
    [self.view addSubview:newWeb];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
